package com.hr.borrowingLog.mapper;

import java.util.List;
import com.hr.borrowingLog.domain.BorrowingLog;

/**
 * 查询借支记录Mapper接口
 * 
 * @author guan
 * @date 2024-07-20
 */
public interface BorrowingLogMapper 
{
    /**
     * 查询查询借支记录
     * 
     * @param borrowingLogId 查询借支记录主键
     * @return 查询借支记录
     */
    public BorrowingLog selectBorrowingLogByBorrowingLogId(Long borrowingLogId);

    /**
     * 查询查询借支记录列表
     * 
     * @param borrowingLog 查询借支记录
     * @return 查询借支记录集合
     */
    public List<BorrowingLog> selectBorrowingLogList(BorrowingLog borrowingLog);

    /**
     * 新增查询借支记录
     * 
     * @param borrowingLog 查询借支记录
     * @return 结果
     */
    public int insertBorrowingLog(BorrowingLog borrowingLog);

    /**
     * 修改查询借支记录
     * 
     * @param borrowingLog 查询借支记录
     * @return 结果
     */
    public int updateBorrowingLog(BorrowingLog borrowingLog);

    /**
     * 删除查询借支记录
     * 
     * @param borrowingLogId 查询借支记录主键
     * @return 结果
     */
    public int deleteBorrowingLogByBorrowingLogId(Long borrowingLogId);

    /**
     * 批量删除查询借支记录
     * 
     * @param borrowingLogIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBorrowingLogByBorrowingLogIds(Long[] borrowingLogIds);

    /**
     * 用户查询与自身相关借支信息
     * @param borrowingLog
     * @return
     */
    List<BorrowingLog> selectBorrowingLogAssociationList(BorrowingLog borrowingLog);

    /**
     * 查询总额
     * @param borrowingLog
     * @return
     */
    String countAmount(BorrowingLog borrowingLog);
}
